using Godot;
using System;

public partial class Punch : Hitbox
{
	public int attack = 0;
	private AnimationPlayer _animationPlayer;
	public override void _Ready()
	{
		_animationPlayer = GetNode<AnimationPlayer>("AnimationPlayer");
		this.AreaEntered += OnAreaEnter;
	}

	// Called every frame. 'delta' is the elapsed time since the previous frame.
	public override void _Process(double delta)
	{
	}

	public void SetAttack(int newAttack)
	{
		attack = newAttack;
	}

	public void OnAreaEnter(Area2D body)
	{
		GD.Print("拼刀！！！");
	}

}
